home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ Win2K Start Menu 3.xpl < prev    next >
Text File  |  2002-01-03  |  5KB  |  147 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="9"
  3. "COUNT"="1"
  4. "UIPATH"="Appearance\Start menu\Windows 2000"
  5. "NAME"="Start Menu Options"
  6. "VERSION"="4.00"
  7. "LANGUAGE"="VBScript"
  8. "OSVERSION"="000100"
  9. "TEXT 1"="dⁿdel dⁿ"
  10. "DESCRIPTION 1"="Common Groups: Normally the contents of the Start Menu vary from user to user. With this option enabled, you will also be able to see 'Common groups' which all users of a particular computer can see."
  11. "DESCRIPTION 2"="Programs Scrolling: In Windows 95/NT, if the Start Menu was too big to fit vertically on the screen, multiple columns were used. In Windows 98 and above, the Start Menu become scrolling. If you would prefer to see your Start Menu in multiple columns again, disable this option."
  12. "DESCRIPTION 3"="Programs Context Menu: This allows you to view a standard Explorer context menu when clicking with the right mouse button on an entry in Start->Programs. Note: disabling this will also disable the ability to use drag & drop to move the items inside Programs!"
  13. "DESCRIPTION 4"="Administrative Tools: Shows the Administrative Tools folder under Start->Programs. "
  14. "DESCRIPTION 5"="Start Menu Context: If this is enabled, a context menu will appear when you click on the Start button with the right mouse button."
  15. "DESCRIPTION 6"="User-created Folders: If this is enabled, extra folders (like the Cascading Control Panel) can appear above the Program entry. When disabled, these folders will be hidden."
  16. "DESCRIPTION 7"="Personalized Menus: If this is enabled, 'Intellimenus' will be used on your Start Menu, which hides the items you don't use very often."
  17. "AUTHOR"="Xteq Systems"
  18. "CONTACTURL"="http://www.xteq.com"
  19. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  20. "COMMENT 1"="'Multiple Columns' setting from Tom Simpson [thomas@mail.xenafan.com] - thanks a lot!"
  21. "COMMENT 2"="Thanks to Ken [k-o@cyberdude.dk] for the "no drag&drop" notice."
  22. "COMMENT 3"="Thanks to Dutler, Dennis R [dennis.dutler@eds.com] for the "XP screw up" notice"
  23.  
  24.  
  25.  
  26.       sV_CommonGroups="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoCommonGroups"
  27.    sV_StartMenuScroll="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\StartMenuScrollPrograms" 
  28.    sV_ProgramsContext="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoChangeStartMenu"
  29.         sV_AdminTools="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\StartMenuAdminTools"
  30.         sV_SubFolders="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoStartMenuSubFolders" 
  31.       sV_IntelliMenus="HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\IntelliMenus" 
  32.  
  33. SUB Plugin_Initialize
  34.  'NT/2000 (XP?)
  35.  Call SetUIElement(1,"Show Common Groups in Start->Programs")
  36.  Call ReadIt(1,sV_CommonGroups)
  37.  
  38.  '98/2000/ME/XP -> Win98 Special Handling
  39.  Call SetUIElement(2,"Show Start->Programs in scrolling mode")
  40.  Call ReadIt_3(2,sV_StartMenuScroll)
  41.  
  42.  '98/2000/ME/XP
  43.  Call SetUIElement(3,"Show Start->Programs context menu")
  44.  Call ReadIt(3,sV_ProgramsContext)
  45.  
  46.  '2000/XP
  47.  Call SetUIElement(4,"Show Start->Programs->Administrative Tools")
  48.  Call ReadIt_3(4,sV_AdminTools)
  49.  
  50.  'NT/2000/ME/XP
  51.  Call SetUIElement(5,"Show user-created folders at top of Start Menu")
  52.  Call ReadIt(5,sV_SubFolders)
  53.  
  54.  '2000 (not XP?!?!?)
  55.  Call SetUIElement(6,"Use Personalized Menus (hide unused items)")
  56.  Call ReadIt_3(6,sV_IntelliMenus)
  57. END SUB
  58.  
  59. SUB Plugin_CheckData(ElementIndex)
  60. END SUB
  61.  
  62. SUB Plugin_Apply(ElementIndex,ElementSubIndex)
  63.  Call WriteIt(1,sV_CommonGroups)
  64.  Call WriteIt_3(2,sV_StartMenuScroll)
  65.  Call WriteIt(3,sV_ProgramsContext)
  66.  Call WriteIt_3(4,sV_AdminTools)
  67.  Call WriteIt(5,sV_SubFolders)
  68.  Call WriteIt_3(6,sV_IntelliMenus)
  69.  
  70.  
  71.  Call IndicateSettingChange()
  72. END SUB
  73.  
  74. SUB Plugin_Terminate
  75. END SUB
  76.  
  77.  
  78.  
  79.  
  80.  
  81. Sub ReadIt(ITM,PATH1)
  82.  if RegValueExists(PATH1)=false then 'setting available?
  83.     'no setting -> item visible
  84.     Call SetUIElementEx(ITM,true)
  85.  else
  86.     i=RegReadValue(PATH1)
  87.     if i=0 then 
  88.        Call SetUIElementEx(ITM,true)
  89.     end if
  90.  end if
  91. End Sub
  92.  
  93. Sub ReadIt_2(ITM,PATH1)
  94.  if RegValueExists(PATH1)=false then 'setting available?
  95.     'no setting -> item not visible
  96.     Call SetUIElementEx(ITM,false)
  97.  else
  98.     i=RegReadValue(PATH1)
  99.     if i=1 then 
  100.        Call SetUIElementEx(ITM,true)  
  101.     end if
  102.  end if
  103. End Sub
  104.  
  105. Sub ReadIt_3(ITM,PATH1)
  106.  if RegValueExists(PATH1)=false then 'setting available?
  107.     'no setting -> item is active
  108.     Call SetUIElementEx(ITM,true)
  109.  else
  110.     s=RegReadValue(PATH1)
  111.     if LCase(s)="yes" then 
  112.        Call SetUIElementEx(ITM,true)  
  113.     end if
  114.  end if
  115. End Sub
  116.  
  117. Sub WriteIt(ITM,PATH1)
  118.  b=GetUIElementEx(ITM)
  119.  if b=true then
  120.  
  121.     s=RegReadValue(PATH1)
  122.     if IsEmpty(s)=false then
  123.        Call RegDeleteValue(PATH1)
  124.     end if
  125.  
  126.  else
  127.     Call RegWriteValue(PATH1,1,2)
  128.  end if
  129. End Sub
  130.  
  131. Sub WriteIt_2(ITM,PATH1)
  132.  b=GetUIElementEx(ITM)
  133.  if b=true then
  134.     Call RegWriteValue(PATH1,1,2)
  135.  else
  136.     Call RegWriteValue(PATH1,0,2)
  137.  end if
  138. end Sub
  139.  
  140. Sub WriteIt_3(ITM,PATH1)
  141.  b=GetUIElementEx(ITM)
  142.  if b=true then
  143.     Call RegWriteValue(PATH1,"YES",1)
  144.  else
  145.     Call RegWriteValue(PATH1,"NO",1)
  146.  end if
  147. End Sub